'''
Author: Faye Lee
Date: 2025-04-15 16:20:29
LastEditTime: 2025-05-09 16:55:10
LastEditors: Faye Lee
Description: 
FilePath: \pygame_alien\game_stats.py
Halo Baby,欢迎打开新世界的大门!
'''
class GameStats:
    """跟踪游戏的统计信息"""

    def __init__(self, ai_settings):
        """初始化统计信息"""
        self.ai_settings = ai_settings
        self.reset_stats()
        self.game_active = False
        self.high_score =0
    def reset_stats(self):
        """初始化在游戏运行期间可能变化的统计信息"""
        self.ships_lives = self.ai_settings.ship_limit
        self.score = 0
        self.level = 1